Skip to content

fix(ci): update PR validation workflow to use types, subjectPattern and validateSingleCommit inputs#338

Merged
hahirwar-cd merged 7 commits intomasterfrom
fix/pr-checks
Mar 13, 2026
Merged

fix(ci): update PR validation workflow to use types, subjectPattern and validateSingleCommit inputs#338
hahirwar-cd merged 7 commits intomasterfrom
fix/pr-checks

Conversation

@hahirwar-cd
Copy link
Copy Markdown
Contributor

Description

  • Improved the reusable pr-check.yml workflow by making the PR title validation more flexible and configurable.
  • The hardcoded regex was replaced with dynamic validation based on workflow inputs (types, subjectPattern, and requireScope).
  • Added support for optional scope enforcement, configurable subject patterns, and capitalized commit types.
  • Introduced a new commitlintConfig: input so repositories can provide their own Commitlint configuration file.
  • Also added an optional validateSingleCommit check to enforce a single commit in PRs.
  • Overall, the workflow is now more reusable, configurable, and aligned with Conventional Commit standards.

Type of Change

  • 🐛 Bug fix
  • ✨ New workflow
  • 📝 Documentation update
  • 🔧 Workflow enhancement
  • 🎨 Code style/formatting
  • ♻️ Refactoring
  • ⚡ Performance improvement
  • 🔒 Security improvement

Workflow Category

  • Terraform (tf-*)
  • CloudFormation (cf-*)
  • Docker (docker-*)
  • Helm (helm-*)
  • PR Automation (pr-*)
  • Security (security-*)
  • Release (release-*)
  • Notification (notify-*)
  • AWS-specific (aws-*)
  • GCP-specific (gcp-*)
  • YAML Lint (yl-*)
  • Other

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

@hahirwar-cd hahirwar-cd requested a review from archit-cd March 10, 2026 19:54
@hahirwar-cd hahirwar-cd self-assigned this Mar 10, 2026
@hahirwar-cd hahirwar-cd added bug Something isn't working enhancement New feature or request labels Mar 10, 2026
@hahirwar-cd hahirwar-cd requested a review from dverma-cd March 11, 2026 15:51
@hahirwar-cd hahirwar-cd merged commit 3be9d9d into master Mar 13, 2026
14 checks passed
@hahirwar-cd hahirwar-cd deleted the fix/pr-checks branch March 13, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants